package kayao.client.network.message;

import kayao.common.KayaoValues;
import kayao.common.NetworkUtils;

public class WelcomeMessage extends Message {

	protected WelcomeMessage(String targetAddress, int retries,int timeoutLength, int priority) 
	{
		super(targetAddress, retries, timeoutLength, priority);
		createPacketData();
		
	}

	@Override
	public void createPacketData() {
		mSendData = new byte[5];
		NetworkUtils.insertIntToByteArray(mSendData, 0, KayaoValues.MAGIC_NUMBER);
		mSendData[4]=KayaoValues.NEW_MATE_REPLY;
	}

	@Override
	public String type() {
		// TODO Auto-generated method stub
		return "Welcome Message";
	}
}
